package com.huarui.quotation.activemq;

import org.apache.lucene.document.Document;
import org.ewaf.framework.lucene.DocumentBuilder;

import com.huarui.quotation.lucene.QuotationDocumentBuilder;
import com.huarui.quotation.model.Quotation;

public class QuotationConsumer {
	
	private DocumentBuilder  documentBuilder = new QuotationDocumentBuilder();
	

	public DocumentBuilder getDocumentBuilder() {
		return documentBuilder;
	}


	public void setDocumentBuilder(DocumentBuilder documentBuilder) {
		this.documentBuilder = documentBuilder;
	}


	public void receive(final Quotation quotation) {
		
		Document doc = documentBuilder.buildDocument(quotation);
		
	}
}
